.modal-root {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1050;
  visibility: hidden;
  .close {
    position: absolute;
    right: 15px;
    top: 5px;
    font-size: 40px;
  }
  .my-modal {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -120%);
    transition: all 500ms;
  }
  .modal-dialog {
    width: auto;
    min-width: 400px;
    margin: 0;
  }
  .mask {
    opacity: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    transition: all 500ms;
  }
  &.active {
    visibility: visible;
    .my-modal {
      transform: translate(-50%, 20%);
    }
    .mask {
      opacity: 1;
    }
  }
}
